quadratic word problems (profit